<?php
/**
 * 小邮筒订单
 */
namespace soa\minpost\order\v1\waybill;

use soa\client;
class backfill  extends client{
	/**
	 * 服务地址
	 * @var string
	 */
	public $service_url = 'http://mp.kuaidihelp.com/';
	/**
	 * 服务名称
	 * @var string
	 */
	protected $service_name = 'kuaidihelp_mp';

	//回填运单号
	public function waybill($order_id,$waybill,$brand,$extra_info = []){
		return $this->post("api/cloudPrint/order/v1/waybill/backfill/waybill",compact('order_id','waybill','brand','extra_info'));
	}

	//回填三段码
	public function routeInfo($order_id,$route_info){
		return $this->post("api/cloudPrint/order/v1/waybill/backfill/routeInfo",compact('order_id','route_info'));
	}

	//回填三段码
	public function syncWaybillInfo($third_order_id,$third_platform){
		return $this->post("api/cloudPrint/order/v1/waybill/backfill/syncWaybillInfo",compact('third_order_id','third_platform'));
	}
}